package com.xisoft.devise.service;

import com.xisoft.base.page.PageResult;
import com.xisoft.base.page.Query;
import com.xisoft.devise.entity.TableColEntity;
import com.xisoft.devise.entity.TableEntity;
import com.xisoft.generator.utils.ResultEntity;

import java.util.List;

/**
 * *
 * Created with Description:
 *
 * @version 1.0 <br>
 * @packagename: com.xisoft.generator.service<br>
 * @author: LiBencheng <br>
 * @computer: licheng <br>
 * @date: Created on 2022/8/9 13:55 <br>
 */
public interface IGenService
{

    List< TableColEntity > getFieldList(String tableName) throws Exception;

    public PageResult< TableEntity > page(Query query) throws Exception;
    ResultEntity genCodeBytable(String tables) throws Exception;
    /************************************************************* <br>
     *
     *说明: 行数据,生成代码<br>
     *
     * @Description   <br>
     * @Date Created on 2022/8/16  11:03  <br>
     * @param tableName <br>
     * @return com.xisoft.generator.utils.ResultEntity  <br>
     * @Author LIBENCHENG
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    ResultEntity genCode(String tableName) throws Exception;

    /************************************************************* <br>
     *
     *说明: 直接生成代码<br>
     *
     * @Description   <br>
     * @Date Created on 2022/8/16  11:03  <br>
     * @param tableJson <br>
     * @return com.xisoft.generator.utils.ResultEntity  <br>
     * @Author LIBENCHENG
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    ResultEntity createCode(String tableJson) throws Exception;

    /************************************************************* <br>
     *
     *说明: <br>
     *
     * @Description   <br>
     * @Date Created on 2022/9/26  13:56  <br>
     * @param tableJson <br>
     * @return com.xisoft.generator.utils.ResultEntity  <br>
     * @Author LIBENCHENG
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    ResultEntity makeCode(String tableJson) throws Exception;
}
